/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.core.service.invoke.async;

import com.pingan.mobilegw.core.model.GatewayRequest;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * 异步上下文
 * 
 * @author jiadao
 * @version $Id: AsyncManager.java, v 0.1 2013-8-7 下午3:20:15 jiadao Exp $
 */
public class Async {

    /** RPC请求上下文 */
    public static final Map<String, GatewayRequest> context                = new ConcurrentHashMap<String, GatewayRequest>();

    /** operationType白名单 */
    public static final List<String>                operationTypeWhiteList = new CopyOnWriteArrayList<String>();

    /** 服务器白名单 */
    public static final List<String>                serverWhiteList        = new CopyOnWriteArrayList<String>();

    /** 系统白名单 */
    public static final List<String>                systemList             = new CopyOnWriteArrayList<String>();

    /** 异步总开关 */
    public static volatile boolean                  isOpenAsync            = false;

}
